package com.example.feign;


import com.example.controller.HelloRemoteHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author hewei
 * @Title: HelloRemote
 * @ProjectName springcloud-test
 * @Description: hello的远程调用实现
 * @date 2018/11/16 16:32
 */
@FeignClient(value = "spring-cloud-provide",fallback = HelloRemoteHystrix.class)
public interface HelloRemote {

    @GetMapping("hello")
    public String Hello(@RequestParam("name") String name);
}
